﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
namespace Blog.DAL
{
    [Serializable]
    public partial class tblcities
    {
        private int? _con_id;
        private int _city_id;
        private string _name;
        public virtual int? con_id { get { return _con_id; } set { _con_id = value; } }
        public virtual int city_id { get { return _city_id; } set { _city_id = value; } }
        public virtual string name { get { return _name; } set { _name = value; } }
        public tblcities()
        { 
        
        }
        
        public IQueryable<tblcity> get_cities()
        {
            DB db = new DB();
                return (from d in db.tblcities where d.con_id.Equals(con_id) select d) ;
        }
    }
}
